<fieldset>
<?php if (isset($title)) { ?><legend><?php echo $label; ?></legend>
<?php }
	foreach ($elements->elements as $id => $element) {
		$params = array('element' => $element);
		if (isset($elements->form->messages[$id])) 
			$params['message'] = $elements->form->messages[$id];
		$this->render($element['wrapper'],$params);
	}
?>
</fieldset>
